package com.example.travelservlet.entity;

import com.example.travelservlet.idclass.CollectionFoodPk;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;
import java.util.Date;

/**
 * @author dell
 */
@Entity
@Data
@IdClass(CollectionFoodPk.class)
public class CollectionFood implements Serializable {
    @Id
    private String collectId;
    @Id
    private String foodId;

    private Date collectTime;
}
